package org.mike.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class CityService {

    @Autowired
    RestTemplate restTemplate;

    public String cityService(String city) {
//        System.out.println("1111");
        return restTemplate.getForObject("http://service-client-city/api/city?cityName="+city,String.class);
    }

}